package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.ykdl.member.kid.models.FileMetas;

import net.wxxr.http.interfaces.IJsonParser;

public class Memberactorbean implements Serializable,IJsonParser{

	/**
	 * 
	 */
	private static final long serialVersionUID = -8152954038788022562L;
	private ProfileBean profile ;
	private String rank_level ;
	private String display_name;
	private FileMetas avatar ;
	public FileMetas getAvatar() {
		return avatar;
	}
	public void setAvatar(FileMetas avatar) {
		this.avatar = avatar;
	}
	public ProfileBean getProfile() {
		return profile;
	}
	public void setProfile(ProfileBean profile) {
		this.profile = profile;
	}
	public String getRank_level() {
		return rank_level;
	}
	public void setRank_level(String rank_level) {
		this.rank_level = rank_level;
	}
	public String getDisplay_name() {
		return display_name;
	}
	public void setDisplay_name(String display_name) {
		this.display_name = display_name;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, Memberactorbean.class);
		}
		return null;
	}

}
